#pragma once

#include "pool.h"
#include "epoll.h"




class Tcp
{
private:

    static Epoll* epoll;
    static Pool* pool;

    pthread_t tcp_id;
public:
    Tcp();
    ~Tcp();

    //　开始
    void Begin(task_t fun = nullptr);
    void End(void);

    unsigned int GetListensEventsCount(void);
    unsigned int GetTaskCount(void);
    unsigned int GetThreadCount(void);

    void Set_ThreadCount(unsigned int num);

    bool Set_ListensEvent_Callback(task_t fun);

};


